@extends('Layout/layout')
@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("person").className = "e_css";
	}); 
</script>
<script language="javascript" type="text/javascript">
function click1(num){

if(document.getElementById(num).style.display=="block")
{
 document.getElementById(num).style.display="none";
}
else
{
 document.getElementById(num).style.display="block";;
 
}

}
    </script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('Personnel/Person/index') }}"><p>员工档案</p></a></li>
<li><a href="{{ url('Personnel/Leave/index') }}"><p>请假申请</p></a></li>
<li><a href="{{ url('Personnel/Adjust/index') }}"><p>职位调整申请</p></a></li>
<li><a href="{{ url('Personnel/Leaveoffice/index') }}"><p>离职申请</p></a></li>
@if(session('role') == 1)
<li><a href="{{ url('Personnel/Recruit/index') }}"><p>人员招聘</p></a></li>
<li><a href="{{ url('Personnel/Performance/index') }}"><p>绩效管理</p></a></li>
<li><a href="{{ url('Personnel/Socialinsurance/index') }}"><p>社保</p></a></li>
<li><a href="{{ url('Personnel/Money/index') }}"><p>工资管理</p></a></li>
@endif
<li><a href="{{ url('Personnel/Training/index') }}"><p>员工培训</p></a></li>
</ul>
</div>
<div class="mian_b">
<div class="mian_b1">
<a href="{{ url('Personnel/Socialinsurance/add') }}" title="添加">
<p class="mian_b1_a1">
</p>
</a>
<form action="{{ url('Personnel/Socialinsurance/index')}}" method="get"> 
<p class="mian_b1_sousuo">
<input name="name" type="text" value="姓名">
</p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>


</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr id="search" style="display: none;">
<td colspan="8" style="height: 35px; background-color: #DBDBDB;margin-left:20px">
<select>
<option>性别
<option>男
<option>女
</select>&nbsp;<select><option>所属部门
<option>软装部
<option>人事部
</select>&nbsp;<select><option>状态
<option>在职
<option>离职
</select>&nbsp;
<input name="" type="text" value="工号、姓名、职位、手机" class="input_03">&nbsp;<input name="" type="text" value="起始日期" class="input_03">&nbsp;-&nbsp;<input name="" type="text" value="结束日期" class="input_03">
</td>
<td colspan="3" style="height: 35px; background-color: #DBDBDB;">
<a href="#" title="高级搜索">
<p class="mian_b1_a8" onclick="click('search');">
</p>
</a>
</td>
</tr>
<tr>
<td width="3%" class="mian_b_bg_lm">
<input name="" type="checkbox" value="">&nbsp;
</td>
<td width="5%" class="mian_b_bg_lm">
<span></span>员工姓名
</td>
<td width="10%" class="mian_b_bg_lm">
<span></span>月份
</td>
<td width="10%" class="mian_b_bg_lm">
<span></span>公积金
</td>
<td width="10%" class="mian_b_bg_lm">
<span></span>养老保险
</td>
<td width="10%" class="mian_b_bg_lm">
<span></span>失业保险
</td>

<td width="10%" class="mian_b_bg_lm">
<span></span>医疗保险
</td>

<td width="10%" class="mian_b_bg_lm">
<span></span>工伤保险
</td>

<td width="10%" class="mian_b_bg_lm">
<span></span>生育保险
</td>
<td colspan="2" class="mian_b_bg_lm">
<span></span>操作
</td>
</tr>
@foreach($res as $k => $v)
<tr>
<td>
<input name="" type="checkbox" value="">&nbsp;
</td>
<td>{{$v['PersonName']}}</td>
<td>{{$v['Month']}}</td>
<td>{{$v['AccumulationFund']}}</td>
<td>{{$v['Endowment']}}</td>
<td>{{$v['Unemployment']}}</td>
<td>{{$v['Medical']}}</td>
<td>{{$v['EmploymentInjury']}}</td>
<td>{{$v['Maternity']}}</td>


<td width="5%" class="mian_b_icon_01">
<a href="{{ url('Personnel/Socialinsurance/edit',['SocialInsuranceID'=>$v['SocialInsuranceID']])}}">编辑</a>
</td>

</tr>
@endforeach
</table>
<div style="float:left;" id="fenye">
{!! $res->appends($info)->render() !!}
</div>


</div>
</div>
</body>


@endsection